<!--
 * @Descripttion: 
 * @Version: 
 * @Author: gaohj
 * @Date: 2023-01-11 09:45:03
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-01-11 09:55:39
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>千锋yyds</title>
</head>
<body>
    <button onclick="myOpen()">打开</button>
    <button onclick="myClose()">关闭</button>
    <script>
        // window.location.href = ''; 这是跳转
        function myOpen(){
            window.open("http://www.qfedu.com","_self","width=400,height=400");
        }
        // open打开新的标签页 

        function myClose(){
            window.close();
        }

    </script>
</body>
</html>